var http = require('http');
var fs = require('fs');
var hostname='127.0.0.1';
var port='3000';

var server=http.createServer(function(req,res){
    if (req.url=='/favicon.ico') {
        console.log('request received!');
        res.statusCode=200;
        res.writeHead(200,{"Content-Type":"text/html;charset=utf-8"});
        res.end('hello wangfan 王帆');
    }
});


server.listen(port,hostname);